package com.meta.act.app.system.repository.impl;

import com.meta.act.app.system.mapper.TenantMenuRelateMapper;
import com.meta.act.app.system.repository.TenantMenuRelateRepository;
import com.meta.act.app.tenant.entity.TenantMenuRelate;
import com.meta.act.app.tenant.req.ro.TenantMenuRelateRo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  
 * @Title:      TenantMenuRelateRepositoryImpl
 * @Author:     M.simple
 * @Remark:     The modified content
 * @CreateDate: 2020-11-24 20:14:58
 * @Version:    v2.0
 */
@Service
public class TenantMenuRelateRepositoryImpl implements TenantMenuRelateRepository {

	@Autowired
	private TenantMenuRelateMapper tenantMenuRelateMapper;

	/**
	 * insert tenantMenuRelate info
	 * @method      insertTenantMenuRelate
	 * @param       tenantMenuRelate:
	 * @return      void
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	@Override
	public void insertTenantMenuRelate(TenantMenuRelate tenantMenuRelate){
			tenantMenuRelateMapper.insertTenantMenuRelate(tenantMenuRelate);
	}

	/**
	 * batch insert tenantMenuRelate info
	 * @method      insertTenantMenuRelate
	 * @param       tenantMenuRelates:
	 * @return      void
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	@Override
	public void batchInsertTenantMenuRelate(List<TenantMenuRelate> tenantMenuRelates){
			tenantMenuRelateMapper.batchInsertTenantMenuRelate(tenantMenuRelates);
	}

	/**
	 * update tenantMenuRelate info
	 * @method      updateTenantMenuRelate
	 * @param       tenantMenuRelate:
	 * @return      int
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	@Override
	public int updateTenantMenuRelate(TenantMenuRelate tenantMenuRelate){
			return tenantMenuRelateMapper.updateTenantMenuRelate(tenantMenuRelate);
	}

	/**
	 * update tenantMenuRelate info by Pk
	 * @method      updateTenantMenuRelateByPk
	 * @param       tenantMenuRelate:
	 * @return      int
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	@Override
	public int updateTenantMenuRelateByPk(TenantMenuRelate tenantMenuRelate){
		return tenantMenuRelateMapper.updateTenantMenuRelateByPk(tenantMenuRelate);
	}

	/**
	 * list tenantMenuRelate info
	 * @method      listTenantMenuRelate
	 * @param       tenantMenuRelate:
	 * @return      List<TenantMenuRelate>
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	@Override
	public List<TenantMenuRelate> listTenantMenuRelate(TenantMenuRelateRo tenantMenuRelate){
			return tenantMenuRelateMapper.listTenantMenuRelate(tenantMenuRelate);
	}

}
